CC	=	g++

CFLAGS	= -Wall -Werror -O0 -g

#-L../Apps/ -lapptime 

INCLUDE_PATH =	-I/usr/include/nite/	\
		-I/usr/include/ni/	\
		-I../Apps/

PREBUILD = App.o
TOBUILD = UserPreferences.o  SystemPreferences.o System.o User.o AppList.o 

DEPEND = $(addprefix $(BUILDDIR),$(PREBUILD)) \
	 $(addprefix $(BUILDDIR),$(TOBUILD))

BUILDDIR = ../build/

DEFINE	= -DDEBUG


all: $(DEPEND)

$(BUILDDIR)%.o:%.cpp
	$(CC) -o $@ -c $< $(DEFINE) $(INCLUDE_PATH) $(CFLAGS)

clean:
	rm -rf $(DEPEND) 